package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.ShoppingCart;

/**
 * 购物车业务层接口
 */
public interface ShoppingCartService extends IService<ShoppingCart> {
    /**
     * 加入菜品或者套餐到购物车
     * @param shoppingCart
     * @return
     */
    R add(ShoppingCart shoppingCart);

    /**
     * 减少菜品数量
     * @param shoppingCart
     * @return
     */
    R sub(ShoppingCart shoppingCart);

}
